#pragma once
#include <list>
#include <vector>
#include "Bomb.h"
#include "Sprite.h"
#include "Car.h"
#include "Common.h"

class CustomModel;

class RearWheels
{
public:
	b2Vec2 left;
	b2Vec2 right;
};

class DecalsManager
{
public:
	DecalsManager(void);
	~DecalsManager(void);

	std::list<Bomb *> bombList;
	Sprite *target;
	std::vector<Car *> cars;
	//BITMAP *tire;
	//b2Vec2 prvPosA;
	//b2Vec2 prvPosB;
	std::vector <RearWheels *> wheels;

	void addBomb(Bomb *b) { bombList.push_back(b); };
	void addCar (Car *c); 
	void update();
	void drawExplosion(Bomb *b);
	void drawSkidMarks(Car *c, RearWheels *wheels);
};
